home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
data
/
nyan_e2
/
nyane2_h.plp
< prev
next >
Wrap
Text File
|
1993-11-30
|
9KB
|
363 lines
/********** 発言タイトル一覧の作成 ~途中経過表示版~ v1.04a用 **********/
var count[4];
var item[92];
%MesDat tmpdir|{\_TMP.DAT};
%setstar{[Flag]
case(Flag={Yes} && (type={Forum} || type={Patio}) && UnReadL!=0,{Yes},{
%last @nolmemo(2)-2;
case(last>UnReadL,
{Yes}, {linenum:=last-UnReadL+1;
},{No},{linenum:=2;
});
mclear(3);
mmove(2,1,linenum-1,3);
madd(3,@getchar(@memo(2,linenum,1),1,8));
madd(3,{*});
madd(3,@getchar(@memo(2,linenum,1),10));
mmove(2,linenum+1,@nolmemo(2),3);
mclear(2);
mcopy(3,2);
mclear(3);
});
mwrite(MesDat,2);
};
%date{[DATE]
%Y @getchar(DATE, 1,2);
%M @getchar(DATE, 4,2);
%D @getchar(DATE, 7,2);
%HH @getchar(DATE,10,2);
%MM @getchar(DATE,13,2);
case(@im(M|D)+0==0,
{Yes}, {im({0000000000});
},{No},{im(Y|M|D|HH|MM);
});
};
%setline {
case(type,
{BUL},{
var OLDdate[10];
var CURdate[10];
loop({
%wkln1 @fread(19,{/});
case(@getchar(wkln1,10,5)*@getchar(wkln1,20,2)>0,
{Yes},{
CURdate:=@date({00/}|@getchar(wkln1,17,5)|{ 00:00});
case(OLDdate <= CURdate,
{Yes},{
item:=@ftell|{ }|@getchar(wkln1,7,80);
madd(2,item);
footnote(@getchar(@head(item,{\n}),10,78));
OLDdate:=CURdate;
});
});
im(wkln1<>{})
});
},{HP},{
case(First=1 && Count=0,
{Yes},{
loop({
%wkln1 @fread(9,{/});
case(85<@getchar(wkln1,7,2) &&
@getchar(wkln1,18,1)={:},
{Yes},{
case(wkln1<>{},{Yes},{
madd(2, @ftell|{ }|@getchar(wkln1,1,3)|{ }
|@getchar(wkln1,7,14)|{ }
|@getchar(wkln1,37,50));
});
footnote(@getchar(@head(wkln1,{\n}),1,69));
});
im(wkln1<>{})
});
},{No},{
loop({
%wkln1 @fread(9,{/});
case(@getchar(wkln1,1,3)>=First,
{Yes},{
case(85<@getchar(wkln1,7,2) &&
@getchar(wkln1,18,1)={:},
{Yes},{
count:=count+1;
madd(2,@ftell|{ }|@getchar(wkln1,1,3)|{ }
|@getchar(wkln1,7,14)|{ }
|@getchar(wkln1,37,50));
footnote(@getchar(@head(wkln1,{\n}),1,69));
});
},{No},{
footnote({ article skip. number : }
|@getchar(wkln1,1,3));
});
im(wkln1<>{} && (Count > count || Count = 0))
});
%wkln1 @fread(9,{/});
});
},{Mail},{
loop({
%wkln1 @fread(35,{/});
item:=@ftell;
%wkln2 @fread;
case(@getchar(wkln1,41,1)={:} &&
@getchar(wkln2,5,4)={題名},{Yes},{
item:=item|{ }|@getchar(wkln1,5,17)
|@getchar(wkln1,23,8)
|@getchar(wkln1,32,6)|{ }
|@getchar(wkln2,11,68);
madd(2,item);
footnote(@getchar(@head(item,{\n}),10,77));
});
im(wkln1<>{})
});
},{Prof},{
loop({
%wkln1 @fread(78,{-});
%wkln2 @fread;
item:=@ftell;
case(@getchar(wkln1,20,15)={---------------} &&
@getchar(wkln2,19,4)={PROF},{Yes},{
madd(2,item|{ }|@getchar(wkln2,1,18)|{(}|
@getchar(wkln2,24,8)|{)\n});
footnote(@head(wkln2,{\n}));
});
im(wkln1<>{})
});
});
};
madd(2,{99999999 ★表示したいメッセージを左ダブルクリック}|
{(又はカーソル移動+PF3)してね★\n});
mclear(3);
linenum:=0;
%MesChk{
var Line1[500];
var Line2[500];
mclear(4);
MesType:={};
Line2:=@fread;
%MesChk2{[n]
var rc[3];
case(@getchar(Line1,1,n) * @getchar(Line1,n+2,n) > 0,{Yes},{
case( @getchar(Line2, 1,1)={(} &&
@getchar(Line2, 4,1)={)} &&
@getchar(Line2,10,1)={/} &&
@getchar(Line2,13,1)={/} &&
@getchar(Line2,16,1)={ } &&
@getchar(Line2,19,1)={:},
{Yes},{
rc:={Yes};
});
});
im(rc);
};
loop({
Line1:=Line2;
Line2:=@fread;
case(@getchar(Line1,4,1)={/},
{Yes},{
case(@MesChk2(3),{Yes},{MesType:={OLD}});
},{No},{
case(@getchar(Line1,6,1)={/},{Yes},{
case(@MesChk2(5),{Yes},{MesType:={NEW}});
});
});
im(MesType={} && Line1<>{});
});
fclose;
fopen(fname);
};
fopen(fname);
footnote({ ログの取り出しをしています.ちょっと,お待ちを!});
count:=0;
case(type<>{Forum} && type<>{Patio},
{Yes},{
setline;
},{No},{
MesChk;
case(MesType,
{OLD},{
case(First=1 && Count=0,
{Yes},{
loop({
%wkln1 @fread(4,{/});
item:=@ftell;
%wkln2 @fread;
case(85<@getchar(wkln2,8,2) &&
@getchar(wkln2,19,1)={:},
{Yes},{
case(@getchar(wkln2,27,2),
{へ},{
madd(2,item|{ 00}|@getchar(wkln1,1,3)|{ 00}
|@getchar(wkln2,24,3)
|@getchar(wkln1,20,17)
|@getchar(wkln1,38,80))
},,{
case(wkln2<>{},{Yes},{
madd(2,item|{ 00}|@getchar(wkln1,1,3)
|{ }|@getchar(wkln1,20,17)
|@getchar(wkln1,38,80))
});
});
footnote(@getchar(@head(wkln1,{\n}),1,69));
});
im(wkln1<>{})
});
},{No},{
loop({
%wkln1 @fread(4,{/});
case(@getchar(wkln1,1,3)>=First,
{Yes},{
item:=@ftell;
%wkln2 @fread;
case(85<@getchar(wkln2,8,2) &&
@getchar(wkln2,19,1)={:},
{Yes},{
count:=count+1;
case(@getchar(wkln2,27,2),
{へ},{
madd(2,item|{ 00}|@getchar(wkln1,1,3)|{ 00}
|@getchar(wkln2,24,3)
|@getchar(wkln1,20,17)
|@getchar(wkln1,38,80))
},,{
madd(2,item|{ 00}|@getchar(wkln1,1,3)|
{ }|@getchar(wkln1,20,17)
|@getchar(wkln1,38,80))
});
footnote(@getchar(@head(wkln1,{\n}),1,69));
im({No});
},{No},{
im(wkln1<>{});
});
},{No},{
footnote({ article skip. number : }
|@getchar(wkln1,1,3));
im(wkln1<>{});
});
});
loop({
%wkln1 @fread(4,{/});
item:=@ftell;
%wkln2 @fread;
case(85<@getchar(wkln2,8,2) &&
@getchar(wkln2,19,1)={:},
{Yes},{
count:=count+1;
case(@getchar(wkln2,27,2),
{へ},{
madd(2,item|{ 00}|@getchar(wkln1,1,3)|{ 00}
|@getchar(wkln2,24,3)
|@getchar(wkln1,20,17)
|@getchar(wkln1,38,80))
},,{
madd(2,item|{ 00}|@getchar(wkln1,1,3)|
{ }|@getchar(wkln1,20,17)
|@getchar(wkln1,38,80))
});
footnote(@getchar(@head(wkln1,{\n}),1,69));
});
im(wkln1<>{} && (Count>count || Count=0))
});
%wkln1 @fread(4,{/});
});
},{NEW},{
case(First=1 && Count=0,
{Yes},{
loop({
%wkln1 @fread(6,{/});
item:=@ftell;
%wkln2 @fread;
case(85<@getchar(wkln2,8,2) &&
@getchar(wkln2,19,1)={:},
{Yes},{
case(@getchar(wkln2,29,2),
{へ},{
madd(2,item|{ }|@getchar(wkln1,1,5)|{ }
|@getchar(wkln2,24,5)
|@getchar(wkln1,22,17)
|@getchar(wkln1,39,80))
},,{
case(wkln2<>{},{Yes},{
madd(2,item|{ }|@getchar(wkln1,1,5)
|{ }|@getchar(wkln1,22,17)
|@getchar(wkln1,39,80))
});
});
});
footnote(@getchar(@head(wkln1,{\n}),1,69));
im(wkln1<>{})
});
},{No},{
loop({
%wkln1 @fread(6,{/});
case(@getchar(wkln1,1,5)>=First,
{Yes},{
item:=@ftell;
%wkln2 @fread;
case(85<@getchar(wkln2,8,2) &&
@getchar(wkln2,19,1)={:},
{Yes},{
count:=count+1;
case(@getchar(wkln2,29,2),
{へ},{
madd(2,item|{ }|@getchar(wkln1,1,5)|{ }
|@getchar(wkln2,24,5)
|@getchar(wkln1,22,17)
|@getchar(wkln1,39,80))
},,{
madd(2,item|{ }|@getchar(wkln1,1,5)
|{ }|@getchar(wkln1,22,17)
|@getchar(wkln1,39,80))
});
footnote(@getchar(@head(wkln1,{\n}),1,69));
im({No});
},{No},{
im(wkln1<>{});
});
},{No},{
footnote({ article skip. number : }
|@getchar(wkln1,1,5));
im(wkln1<>{});
});
});
loop({
%wkln1 @fread(6,{/});
item:=@ftell;
%wkln2 @fread;
case(85<@getchar(wkln2,8,2) &&
@getchar(wkln2,19,1)={:},
{Yes},{
count:=count+1;
case(@getchar(wkln2,29,2),
{へ},{
madd(2,item|{ }|@getchar(wkln1,1,5)|{ }
|@getchar(wkln2,24,5)
|@getchar(wkln1,22,17)
|@getchar(wkln1,39,80))
},,{
madd(2,item|{ }|@getchar(wkln1,1,5)
|{ }|@getchar(wkln1,22,17)
|@getchar(wkln1,39,80))
});
footnote(@getchar(@head(wkln1,{\n}),1,69));
});
im(wkln1<>{} && (Count>count || Count=0))
});
%wkln1 @fread(6,{/});
});
});
});
madd(2,@ftell | { -----------------}|
{------------------\n});
fclose;
setstar({Yes});
%member @body(fname,,{\})|{\MEMBER.TXT};
case( (type={Forum} || type={Mail}) && @filechk(member),
{Yes}, {mread(member,3); memnum:=@nolmemo(3);
},{No},{mkdir(logd,@body(fname,{:},{\}));
madd(3,{});
});
mset(3,{r});